package com.lhj.myapplication.service.impl;

import com.github.pagehelper.Page;
import com.lhj.myapplication.mapper.ArticleMapper;
import com.lhj.myapplication.service.ArticleService;
import com.lhj.myapplication.vo.ArticleViewModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service("articleService")
public class ArticleServiceImpl implements ArticleService {

    @Autowired
    private ArticleMapper articleMapper;
    @Override
    public Page<ArticleViewModel> findByPaging(Map param) {
        return articleMapper.findByPaging(param);
    }
}
